#include "LRUNode.h"


template<typename Key, typename Value>
LRUNode<Key, Value>::LRUNode(Key key, Value value) :
	__key(key), __value(value), __accessCount(1)
{

}

template<typename Key, typename Value>
Key LRUNode<Key, Value>::getKey() const
{
	return key;
}

template<typename Key, typename Value>
Value LRUNode<Key, Value>::getValue() const
{
	return value;
}

template<typename Key, typename Value>
void LRUNode<Key, Value>::setValue(const Value& value)
{
	__value = value;
}

template<typename Key, typename Value>
size_t LRUNode<Key, Value>::getAccessCount() const
{
	return __accessCount;
}

template<typename Key, typename Value>
void LRUNode<Key, Value>::incrementAccessCount()
{
	++__accessCount;
}
